package net.model.factory.simple;

public class PizzaFactory {

	public IPizza createPizza(String type) {
		
		if (type.equals("A")) {
			return new PizzaA();
		} else if (type.equals("B")) {
			return new PizzaB();
		}
		
		return null;
	}
}
